<template>
	<view class="taskrule_page">
		<view class="mt-10">
			<rich-text class="rich_text" :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	import {
		getAgreement,
	} from '@/api/motortime.js';
	let app = getApp()
	export default {
		data() {
			return {
				content: ''
			};
		},
		onShow() {

		},
		onLoad() {
			this.getAgreement()
		},
		methods: {
			getAgreement(){
				getAgreement({
					id: 26
				}).then(res => {
					if (res.state == 1) {
						this.content = res.data.content
						uni.setNavigationBarTitle({
							title: res.data.title
						})
						var params = {
							event_code: '集油规则',
							path: 'pages/taskcentre/taskrule',
							event_id: res.data.id,
							title: res.data.title,
							source_page: '',
							value: '',
						}
						app.BurialPoint(params)
					}
				
				})
			}
		},
	}
</script>

<style lang="scss">
	.taskrule_page {
		padding: 30rpx;

		.rich_text {
			color: #000000;
			line-height: 2;
			font-size: 28rpx;

			img {
				width: 100% !important;
			}
		}
	}
</style>